home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6375 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1018 b   |  36 lines

  1. Path: jpmorgan.com!usenet
  2. From: O Peck FI RES <peck_oliver@jpmorgan.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: SPARCompiler C++ & shared libraries
  5. Date: Mon, 12 Feb 1996 09:21:46 +0000
  6. Organization: JP Morgan
  7. Message-ID: <311F06AA.41C67EA6@jpmorgan.com>
  8. NNTP-Posting-Host: gm-fitrades4.uk.jpmorgan.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m)
  13.  
  14. I am having several problems building shared libraries using v4.0.1
  15. of the Sparcworks C++ compiler on SunOS 4.1.3_U1.
  16.  
  17. 1) What is the purpose of the .sa files that get created? They do
  18. not seem to be used when I am linking executables.
  19.  
  20. 2) When static data is initialised in the shared library, the executable
  21. does not seem to recognise this.  I have read the section of the 
  22. Library Reference Manual about using
  23.  
  24. -u __init_lib_
  25.  
  26. or
  27.  
  28. extern int _init_foo_;
  29. static int __dumyy_foo = _init_foo_;
  30.  
  31. but none of this is clear or seems to work.
  32.  
  33. Can anyone help please?
  34.  
  35. Oliver
  36.